var router = require('libs/router').router;
var pages = require('libs/pages');
var ItemMixin = require('mixins/item');
var libs = require('libs/libs');
var api = libs.api;


var bindEvent = function(){
    //此处各种dom 操作
    libs.inject()
        .js(['/js/t/jq/ui.js', 'uiLib'], expFinish)
    function expFinish(){

    }

}

//订单详情
var WaterSms = React.createClass({
    mixins: [ItemMixin],
    render:function(){
        return (
            <div className="waterSms flex flex-v">
                <div className="flex-1 f-oTouch">
                    <div className="default_pd016">
                        <span>根据您所在的小区及时向您13800008800手机号中发送小区公告通知</span>
                    </div>
                    <div className="f_submit mT014"><a href="#" className="f_btn">开通订阅</a></div>
                </div>
            </div>
        )
    }
});

function start(name){
    return pages.new({
        trigger:function(){
            this.libs.changeTitle('预约送水');    //更改当前页面标题
        },
        main: function(){
            this.render(
                <WaterSms itemDefaultMethod={bindEvent} />,
                document.getElementById(name)
            )
        }
    })
}

module.exports = start;
